[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RETURNIF conditional function exit:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Syntax:
~~~~~~~

  RETURNIF <Expr> WITH <ReturnValue>

Description:
~~~~~~~~~~~~
If a value of <Expr> is true, the loop is finished with command
RETURN <ReturnValue>

Example:
~~~~~~~~

  FUNCTION Test(x)
    RETURNIF x==nil WITH false   //nothing to test
    //the test text
    RETURN true


Source file is Object.ch

See Also: BREAKIF EXITIF LOOPIF
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson